package com.cxm.helper.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author chenximeng
 */

@Getter
@AllArgsConstructor
public enum UserStatusEnum {
    ENABLE(0, "启用"),

    DISABLE(1, "禁用");

    private int code;

    private String name;

    public static Integer reversCode(Integer code) {
        return code.equals(UserStatusEnum.ENABLE.getCode()) ? UserStatusEnum.DISABLE.getCode():UserStatusEnum.ENABLE.getCode();
    }
}
